﻿CREATE FUNCTION dbo.NLin_NSICurrency
	(
	@ID int
	)
RETURNS int
AS
	BEGIN
	DECLARE @n_cost_p int
	
	SELECT @n_cost_p = COUNT(ID) FROM COST_PROTOCOL WHERE NSI_CURRENCY_ID = @ID
	
	RETURN @n_cost_p
	END
